﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ProductosenBodega : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnBodegaGeneral_Click(object sender, EventArgs e)
    {
        SuperMercadoDataContext sm = new SuperMercadoDataContext();
        var ConsultaBodegaGeneral = from datos in sm.BodegaGenerals
                                select datos;

        GridView1.DataSource = ConsultaBodegaGeneral;
        GridView1.DataBind();
    }

    protected void btnBodegaFrutas_Click(object sender, EventArgs e)
    {
        SuperMercadoDataContext sm = new SuperMercadoDataContext();
        var ConsultaBodegaFrutas = from datos in sm.BodegaFrutas
                                    select datos;

        GridView1.DataSource = ConsultaBodegaFrutas;
        GridView1.DataBind();
    }
    protected void btnBodegaCarnes_Click(object sender, EventArgs e)
    {
        SuperMercadoDataContext sm = new SuperMercadoDataContext();
        var ConsultaBodegaCarnes = from datos in sm.BodegaCarnes
                                    select datos;

        GridView1.DataSource = ConsultaBodegaCarnes;
        GridView1.DataBind();
    }
    protected void btnBodegaLacteos_Click(object sender, EventArgs e)
    {
        SuperMercadoDataContext sm = new SuperMercadoDataContext();
        var ConsultaBodegaLacteos = from datos in sm.BodegaLacteos
                                    select datos;

        GridView1.DataSource = ConsultaBodegaLacteos;
        GridView1.DataBind();
    }
}